By using the configured table mappings of ConfigurationFirstDiamantGroupingDao<TEntity, TEntityGroup, TDataContext, TDataCommand, OnGetMappings, this inversion control method automatically produces an SQL SELECT command that handles the request to configure a read command for all entities in the segment defined by Paging from the underlying relational data store.

Read entities are grouped according to the GroupBy criteria and then sorted by applying the OrderBy criteria.

Namespace: Keystone.Carbonite.Diamant.Sql
Assembly: Keystone.Carbonite.Diamant.Sql (in Keystone.Carbonite.Diamant.Sql.dll)

protected override void OnConfigureSelectCommand( 
SqlCommand command
GroupBy groupingCriteria
OrderBy orderingCriteria
Paging pagingCriteria 
)
This language is not supported or no code example is available.

Parameters

command

Type: SqlCommand

The command to configure.

groupingCriteria

Type: GroupBy

The entity to read grouping criteria.

orderingCriteria

Type: OrderBy

The group to read ordering criteria.

pagingCriteria

Type: Paging

The group to read paging criteria.

Windows, Windows Server, OS X, macOS, iOS, tvOS, Android, Linux, AWS, Azure

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 4.6

Others

Xamarin, Mono